home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7245 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.7 KB  |  64 lines

  1. Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
  2. Path: netcom.com!gperkins
  3. From: gperkins@netcom.com (Glen C. Perkins)
  4. Subject: Re: Relative Speed of Perl vs. Tcl vs. C
  5. Message-ID: <gperkinsDMu3BL.Kvy@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <4e3a2u$eoa@wcap.centerline.com>     <JTV2J.96Feb11120004@brunelleschi.cs.virginia.edu>     <4fncgf$96e@solutions.solon.com>     <JTV2J.96Feb12142743@mamba.cs.virginia.edu>     <4fqfvr$3f0@matrix.eden.com> <OZ.96Feb15103918@nexus.yorku.ca>
  8. Date: Thu, 15 Feb 1996 20:23:45 GMT
  9. Sender: gperkins@netcom7.netcom.com
  10.  
  11. oz@nexus.yorku.ca (ozan s. yigit) writes:
  12.  
  13. >Felix Sebastian Gallo [amongst other things]
  14.  
  15. >        ... Heck, even Java might be useful to someone. ... 
  16.  
  17. >it already is, to more people than you are willing to admit. 
  18. >also expect a ground-level java for more perl-like tasks later this year.
  19.  
  20. From whom? This would be great news if true.
  21.  
  22. Perl is fantastic at the level of whipping together a quick
  23. ten-line utility. It's so useful, I can't imagine how I ever
  24. got anything done before Perl. I'll never give it up.
  25.  
  26. Since a 'method' is usually just a little utility within a
  27. larger OO architecture, I often find myself wishing I could
  28. implement a Java method in Perl.
  29.  
  30. I could do the whole program in Perl, but I find Perl to be
  31. just too flexible to serve as the skeleton of a large program.
  32. I use Perl to perform utility operations, but the larger
  33. the project, the less comfortable I am with Perl.
  34.  
  35. If I were a master of either Java or Perl, I could do 
  36. any job entirely in the one language and never experience
  37. any difficulty. Intermediate users, though, notice
  38. that a particular tool makes some things easier than
  39. it makes others. The
  40. whole idea of a really well-designed tool is
  41. to enable an intermediate user to perform like a master
  42. in those tasks for which that tool has been optimized
  43. without requiring that the user actually *be* a master.
  44.  
  45. I think Java is much better for a bigger program which
  46. really ought to be designed carefully and will need to
  47. be maintained. Perl is better for one-shot tasks (doing
  48. in 5 minutes what used to take an afternoon with C),
  49. utilities (mostly for my own use), and tools that can
  50. be quickly modified (usu. by changing a reg expr) to
  51. do something slick with a file of data.
  52.  
  53. For this reason, I'd like to do my utility tasks in Perl,
  54. my large projects (mostly) in Java, and within Java,
  55. I wish I could use Perl or some Perl-like features
  56. to implement *some* of my methods, esp. parsers and
  57. formatters. Java is just extremely weak at string
  58. handling (parsing data streams) compared with Perl.
  59.  
  60. __Glen Perkins__
  61. -- 
  62. +---------------------------------------------------------------------------+
  63.  
  64.